<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>免费加玻璃水</title>
  <script type="text/javascript" src="/static/common/jquery/jquery.min.js"></script>
  <script src="/static/common/layer/layer.js"></script>
</head>
<body>
   <style>

    .submit {
      position: fixed;
      left: 0px;
      bottom: 0px;
      background-color: #4563fa;
      width: 100%;
      height: 40px;
      line-height: 40px;
      text-align: center;
      border: 0px;
   	  color: #ffffff;
   	  font-size: 16px;
    }

  </style>
  <div>
    <div>
      <h3>{$qiname}</h3>
      您当前剩余玻璃水瓶数：{$pinshui}瓶
      <br/><br/>
      会员加注玻璃水1元一瓶（<span style="color: red;">限12瓶</span> ）
      <br/><br/>
    </div>
    <div>
      <form id="xich" action="{:url('bolishui/order')}" method="POST">
        瓶数：<input type="text" name="pinshu">
        <input type="hidden" name="xid" value="{$xid}">
        <br/>
        <br/>
        <input type="submit" class="submit" value="添加玻璃水">
      </form>
      <br/>
    </div>
  </div>
  <!-- <script>
    function hexiao(){
      let heID = $('#xich').serialize();
      $.ajax({
        url:'{:url("bolishui/index")}',
        type:'post',
        data:heID,
        success:function(data){
          if(data.code == 1){
            layer.alert(data.msg,function(index){
              location.reload();
            });
          } else {
            layer.alert(data.msg);
          }
        }
      })
    }
  </script> -->
</body>
</html>